﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace W.M.Materiel.Application.DTO
{
    /// <summary>
    /// BOM产品物料关系DTO
    /// </summary>
    public class BOM_Bill_RelationDTO
    {
        /// <summary>
        /// BOM编号
        /// </summary>
        public string? bom_number { get; set; }

        /// <summary>
        /// BOM主题
        /// </summary>
        public string? bom_topic { get; set; }

        /// <summary>
        /// 版本号
        /// </summary>
        public string? version_number { get; set; }

        /// <summary>
        /// 成品编号
        /// </summary>
        public string? finished_number { get; set; }

        /// <summary>
        /// 成品名称
        /// </summary>
        public string? name_finished_product { get; set; }

        ///// <summary>
        ///// 规格型号
        ///// </summary>
        //public string? specification_and_model { get; set; }

        /// <summary>
        /// 成品类型
        /// </summary>
        public string? type_finished_product { get; set; }

        ///// <summary>
        ///// 单位
        ///// </summary>
        //public string? unit { get; set; }

        /// <summary>
        /// 默认BOM
        /// </summary>
        public bool default_bom { get; set; }

        /// <summary>
        /// 日产量
        /// </summary>
        public int daily_output { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? remark { get; set; }



        /// <summary>
        /// 产品编号
        /// </summary>
        [SugarColumn(ColumnDescription = "备注", Length = 200)]
        public string? product_number { get; set; }



        /// <summary>
        /// bom物品关系Id
        /// </summary>
        public int bom_indicates_relationship_id { get; set; }

        /// <summary>
        /// 产品和物料编号
        /// </summary>
        public string? product_material_numbers { get; set; }

        /// <summary>
        /// 配件数量
        /// </summary>

        public int number_parts { get; set; }

        /// <summary>
        /// 损耗率
        /// </summary>

        public decimal attrition_rate { get; set; }
    }
}
